var searchv = new Vue({
	el: "#app",
	data:{
		s5,
		name:'',
		address:'',
		keeper:'',
		tel:'',
	},
	computed:{
		checkForm(){
			if(this.name == ''){
				alert("店铺名称不能为空")
				return false;
			}else if(this.address == ''){
				alert("店铺地址不能为空")
				return false;
			}else if(this.keeper == ''){
				alert("联系人不能为空")
				return false;
			}else if(this.tel == ''){
				alert("联系电话不能为空")
				return false;
			}else{
				return true;
			}
			return false;
		}
	},
	watch:{
		
	},
	created:function(){
		
	},
	mounted: function() {
		
	},
	methods:{
		getShopper(){
			var that = this;
			if(that.checkForm){
				s5.initData({url:'/store-settle',
				type:"post",
				data:{name:that.name,address:that.address,keeper:that.keeper,mobile:that.tel}
				},(res)=>{
					if(res.code){
						var data = JSON.parse(res)
						alert(data.msg)
					}else{
						var data = JSON.parse(res)
						alert(data.msg)
					}
				})
			}
		}
	}
})